//
//  IGActivityListApi.m
//  jingdongfang
//
//  Created by BOE on 2018/5/24.
//  Copyright © 2018年 BOE-SBG-CTO. All rights reserved.
//

#import "IGActivityListApi.h"

@implementation IGActivityListApi

- (NSString *)requestUrl {
    return [self customUrl];
}

- (id)requestArgument {
    return @{
             @"pageNum":@(_page),
             @"queryTime":_queryTime==nil?@"":_queryTime
             };
}

- (NSString *)customUrl {
    if (_type == IGActivityListTypeSheYing) {
        return @"activity/findCircleActivity";
    } else if (_type == IGActivityListTypeShaoErYiShu) {
        return @"activity/findCircleActivity";
    } else if (_type == IGActivityListTypeQuanZi) {
        return @"activity/findCircleActivity";
    }
    return @"";
}

- (id)customArg {
    if (_type == IGActivityListTypeSheYing) {
        return @{
                 @"pageNum":@(_page),
                 @"type":@"1"
                 };
    } else if (_type == IGActivityListTypeShaoErYiShu) {
        return @{
                 @"pageNum":@(_page),
                 @"type":@"1"
                 };
    } else if (_type == IGActivityListTypeQuanZi) {
        return @{
                 @"pageNum":@(_page),
                 @"queryTime":_queryTime==nil?@"":_queryTime
                 };
    }
    
    return nil;
}

@end

@implementation IGActivityListModel

@end

@implementation IGActivityListResp

@end
